﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;
using BLL.Entities;

namespace HTAProDataImporter.Transport
{
    public abstract class BaseEntityTransport
    {
        //original database key, parsed entity
        public ImportDataStore DataStore {get;set;}
        public List<string> Errors {get;set;}
        public List<string> Warnings { get; set; }
        public abstract string CommandText { get;}

        public BaseEntityTransport()
        {
        }

        public virtual bool IsValid { get { return false; } }
        public abstract void InstanceFromReader(OleDbDataReader DR);
    }
}
